<template>
    <div>
        <Card :bordered="false" v-for="(obj,index) in dictitems">
            <p slot="title">{{obj.title}}</p>
            <div class="head-title-box">
                <div class="head-title size18" v-html="obj.title"></div>
                <span style="margin-left: 0.1rem">来自: {{obj.version}}/{{obj.part}}/{{obj.chapter}} 第 {{obj.page}} 页</span>
            </div>
        </Card>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                dictitems: [   ]
            }
        },
        mounted: function() {
            this.getRevisionList();
        },
        methods: {

            getRevisionList: function() {
                var vm = this;
                axios({
                    method: 'get',
                    url: end_library + '/api/dictionary'
                }).then(function(response) {
                    console.log(response.data);
                    vm.dictitems = response.data.content;

                });
            }
        }
    }
</script>
